<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
<link href="{$this->data['baseurl']}css/tzm/member.css" rev="stylesheet" rel="stylesheet" type="text/css" media="screen">
<div class="nav_m w1000"> <span class="left a1">当前位置：</span> <span class="left"><a class="ft" href="{$this->data['baseurl']}">返回首页</a> &gt;<a class="ft" href="{url('User','Order')}">用户中心</a> &gt;重设密码</span> </div>
<div class="w1000"> 
  <!--左--> 
  {include $this->templateDir . 'component/user-left.php'} 
  <!--左 end-->
  <div class="rightpane right"> 
    <!--右-->
    <div class="left mid_a">
      <div class="left w827">
        <div class="left">
          <div class="tx"> <span class="img"> <img src="{$this->data[user]['logo']}"></span></div>
        </div>
        <div class="right ninf">
          <p class="left wp">用 户 名: {$this->data['user']['username']}</p>
          {if $this->data['return']['rate']>0}
          <p class="left wp">支 付 宝：{if $this->data['user']['alipay_account']}{$this->data['user']['alipay_account']}{else}<a href="{url('User','AlipayAccount')}">设置支付宝账号</a>{/if}</p>
          <p class="left wp">账户余额：<a href="{url('Return','Index')}">{$this->data['user']['money']}</a></p>
          {else}
          <div class="lpdh_wujl left">暂末开启返现功能,请稍后关注.</div>
          {/if} </div>
      </div>
    </div>
    <div class="clear mt10"></div>
    <div class="unlogin_form fl">
  <form id="myform" method="post" action="{url('User','SavePassword')}">
    <p>
      <label for="money" class="f_label">旧的密码：</label>
      <input type="text" spellcheck="false" value="" name="oldpassword" id="oldpassword" class="noime txt_input r3px">
      <br/>
      <span class="hint" id="oldpassword_info" etype="error_info"></span> </p>
    <p>
      <label for="money" class="f_label">新的密码：</label>
      <input type="password" maxlength="32" name="password" id="password" class="txt_input r3px" >
      <br />
      <span class="hint" id="password_info" etype="error_info"></span> </p>
    <p>
      <label for="money" class="f_label">确认密码：</label>
      <input type="password" maxlength="32" name="confirm" id="confirm" class="txt_input r3px" onpaste="return false;" >
      <br />
      <span class="hint" id="confirm_info" etype="error_info"></span> </p>
    <p class="acts">
      <input type="submit" name="commit" id="btnAjaxSubmit" value="确认修改" class="text blue_btn blue_btn2 r3px f14">
    </p>
    <p class="hint">请不要将你密码发送给别人或保存在明显位置,以防止被他人利用,造成你的损失!</p>
  </form>
</div>
</div>
</div>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/jquery.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/form.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/utils.js"></script>
<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	alert('密码更新成功，请重新登陆！');
	document.location.reload();
}else{
	alert('出错了，请重新尝试！');
}
}
var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
$('#myform').ajaxForm(updateOptions); 
</script>